package com.itheima.admin.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class TestTask {
    @XxlJob("testTask")
    public ReturnT<String> handlerTask(String param){
        System.out.println("param = " + param);
        System.out.println("==========执行成功==========");
        return ReturnT.SUCCESS;
    }
}
